package com.maiji.cloud.entities.login;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableLogic;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 食材表
 * @author zhanglr  
 * @date 2019年6月17日
 */
@NoArgsConstructor
@Data
@Accessors(chain=true)
@Table(name = "food_material")
@TableName("food_material")
public class FoodMaterialEntity {

    @TableId
	@Column(name = "uu_id", type = MySqlTypeConstant.VARCHAR, length = 50, isKey = true)
    private String uuId; //主键
	
	@Column(name = "name", type = MySqlTypeConstant.VARCHAR, length = 50)
    private String name; //名称
	
	@Column(name = "alias", type = MySqlTypeConstant.VARCHAR, length = 100)
	private String alias; //别名
	
	@Column(name = "detail_Text", type = MySqlTypeConstant.TEXT)
	private String detailText; //描述

	@Column(name = "description", type = MySqlTypeConstant.TEXT)
	private String description; //描述

	@Column(name = "remark", type = MySqlTypeConstant.TEXT)
	private String remark; //注意事项
	
	@Column(name = "in_time", type = MySqlTypeConstant.DATETIME)
	private Date inTime; //插入时间
	
	@Column(name = "type_label_id", type = MySqlTypeConstant.VARCHAR,length = 50)
	private String typeLabelId; //分类标签id

    @Column(name = "cascader_str", type = MySqlTypeConstant.VARCHAR, length = 100)
    private String cascaderStr; // 级联分类

    @TableLogic
    @Column(name = "is_del", type = MySqlTypeConstant.INT, length = 1, defaultValue = "0")
    private Integer isDel; //是否删除：1删除，0未删除

    @Version
    @Column(name = "version", type = MySqlTypeConstant.INT, length = 1, defaultValue = "0")
    private Integer version; // 数据版本号
	
}
